<template>
  <div>
    <h5>
      我是子组件，我可以通过属性props来接收父组件传过来的年龄值是：
      {{qq}}
    </h5>
    <a href="www">{{times}}sss</a>
    <input type="button" value="点击传值到父亲" @click="sendToFather"/>
  </div>
</template>
<script>
export default {
  data() {
    return {
      childAge: 27,
      name:'tom',
      class:20,
    };
  },
  props: {
    qq:Number,
    times:Number,
  },
  computed:{
      modify(){
          return this.qq
      }
  },
  methods: {
      sendToFather(){
          this.$emit('childAge',this.qq)
      }
  },
};
</script>